FROM openjdk:8u151-jre-alpine

LABEL author="pand"
LABEL version="1.0.0"

ARG jarFile

COPY ${jarFile} app.jar

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms128m","-Xmx128m","-XX:+HeapDumpOnOutOfMemoryError","-jar","/app.jar"]

# docker run -d --name spring-cloud-alibaba-gateway-0.0.1-SNAPSHOT --network host -v spring-cloud-alibaba-gateway-0.0.1-SNAPSHOT-logs:/logs -e SPRING_PROFILES_ACTIVE=dev manbanpai/spring-cloud-alibaba-gateway:0.0.1-SNAPSHOT